﻿using Microsoft.AspNetCore.SignalR;

namespace OConf.API.hub
{
    /// <summary>
    /// 自定义标识
    /// </summary>
    public class AppUserIdProvider : IUserIdProvider
    {
        public string GetUserId(HubConnectionContext connection)
        {
            return connection.GetHttpContext()?.Request.Query["AppId"];
        }
    }
}